package services.upms;

import base.IBaseServicesWithoutBLOBs;
import wt.entity.upms.Role;
import wt.entity.upms.RoleExample;

import java.util.List;


/**
 * Created by Administrator on 2017/9/7.
 */
public interface RoleServices extends IBaseServicesWithoutBLOBs<Role,RoleExample> {

    /**
     * 添加角色和权限
     * @param role
     * @param permissionIdList
     * @throws Exception
     */
    void insertSelective(Role role, List<String> permissionIdList) throws  Exception;

    /**
     * 修改角色和权限
     * @param role
     * @param permissionIdList
     * @throws Exception
     */
    void updateByPrimaryKeySelective(Role role, List<String> permissionIdList) throws  Exception;


}
